#include <iostream>
using namespace std;

int print(string p)
{
    std::cout << p;
    return sizeof(p);
}

#include <iomanip>
int main(void)
{
    int n = print("Hello\n");
    std::cout << n << "\n\n";

    int a01 = 33, a02 = 26;
    int a0 = a01 & a02;
    cout << a0 << endl;
    a0 = a01 | a02;
    cout << a0 << endl;
    a0 = a01 ^ a02;
    cout << a0 << endl;
    a0 = a01 & ~a02;
    cout << a0 << endl
         << endl
         << endl
         << endl
         << "\n";

    /*
    string a1;
    cin >> a1;
    print(a1 + "\n");
    */

    /* float a2, a3, a4;
    float a5;
    cin >> a2 >> a3 >> a4;
    a5 = (a4 + a2 + a3) / 3;
    cout << setprecision(4) << setw(3);
    cout << a5 << endl; */

    /* long int a6, a7;
    cin >> a6;
    a7 = 1 << a6;
    cout << a7 << endl;
    return 0; */

    if (1)
        cout << "1" << endl;
    cout << "11" << endl;

    if (0)
        cout << "2" << endl;
    cout << "22" << endl;

    if (false)
    {
        cout << "3" << endl;
    }
    else
    {
        cout << "33" << endl;
        cout << "333" << endl;
    }

    if (true)
    {
        if (a01 == 33)
            cout << "4" << endl;
        else
            cout << "44\n";
    }
    cout << "444\n";

    switch (a02)
    {
    case 25:
        cout << "5\n";
    case 26:
        cout << "55\n";
    case 27:
        break;
    case 28:
        cout << "555\n";
    default:
        cout << "5555\n";
    }

    // 不支持
    /* string a8 = "ali";
    switch (a8)
    {
    case "ali":
        cout << "6\n";
    default:
        cout << "66\n";
    } */

    /*     // 一样的
    cout << "\n\n";
    for (int i; i <= 10; i++)
    {
        cout << (1 << i) << endl;
    }
    cout << "\n\n";
    for (int i; i <= 10; ++i)
    {
        cout << (1 << i) << endl;
    }
    cout << "\n\n";

    int a9;
a9label:
    cout << (1 << a9) << endl;
    a9++;
    if (a9 <= 10)
    {
        goto a9label;
    } */

    // for key in

    string a10 = "8jh56";
    cout << stoi(a10) << endl;
    char a11[] = "5asdfaf";
    cout << atoi(a11) << endl;
}
